<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <h:form id="frmEditJob">
        <f:view>
            <p:dialog id="dlgEditJob"
                      widgetVar="wgEditJob"
                      header="Edit Job"
                      draggable="true"
                      showEffect="fade"
                      hideEffect="clip"
                      >

                <h:panelGrid columns="2">
                       <p:outputLabel value="JobTitle:" for="jobTitle" />
                       <p:inputText id="jobTitle" value="#{jobManagement.selectJob.jobTitle}" title="JobTitle" maxlength="30" />
                    <p:outputLabel value="JobDescripton:" for="jobDescripton" />
                    <p:inputText id="jobDescripton" value="#{jobManagement.selectJob.jobDescripton}" title="JobDescripton" maxlength="300" />
                    <p:outputLabel value="JobLimitPerYear:" for="jobLimitPerYear" />
                    <p:inputText id="jobLimitPerYear" value="#{jobManagement.selectJob.jobLimitPerYear}" title="JobLimitPerYear" maxlength="10" />
                </h:panelGrid>


                <f:facet name="footer">
                    <p:commandButton  id="btnEditJob"
                                      value="Edit"
                                      icon="ui-icon-check"
                                      style="margin:0"
                                      actionListener="#{jobManagement.edit}"
                                      update=":frmViewJob:dtViewJob,:growl"
                                      oncomplete="JobManagementRequest(xhr, status, args)"
                                      />
                    <p:commandButton id="btnCancelEditJob"
                                     value="Cancel"
                                     icon="ui-icon-check"
                                     style="margin:0"
                                     onclick="wgEditJob.hide();"
                                     />
                </f:facet>
            </p:dialog>
        </f:view>
    </h:form>
</html>
